package com.ruoyi.system.domain.xs;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 写稿店铺对象 xs_store
 *
 * @author ruoyi
 * @date 2025-02-13
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class XsStore extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 店铺名称
     */
    @Excel(name = "店铺名称")
    @NotBlank(message = "店铺名称不能为空")
    private String storeName;

    /**
     * 店铺编号
     */
    @Excel(name = "店铺编号")
    private String storeCode;

    /**
     * 排序
     */
    @Excel(name = "排序")
    private Long sort;

    /**
     * 比例（0~100，例：8.5折扣=85、8折=80）
     */
    @Excel(name = "比例")
    @NotNull(message = "比例不能为空")
    @Min(value = 0, message = "比例最小值为0")
    @Max(value = 100, message = "比例最大值为100")
    private Long ratio;

    /**
     * 状态
     */
//    @Excel(name = "状态")
    private Long state;

    /**
     * 结算天数
     */
    private Integer accountDays;
}
